package com.dxy.controller.some;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create By dongxiaoyong on /2021/12/10
 * description: 示例controller
 *
 * @author dongxiaoyong
 */
@RestController
@RequestMapping("/some")
public class SomeController {

    @GetMapping("/hello/{name}")
    public String hello(@PathVariable(name = "name") String name){
        return "hello " + name;
    }
}
